<html xmlns="http://www.w3.org/1999/html">
<head>
    <title>产品编辑</title>
</head>
<style>

    label{
        display: inline-block;
        width: 100px;
    }

</style>
<body>

<form action="/products-update" method="post">

    <input type="hidden" name="id" value="${product.id}"/>

    <label>产品名称：</label>
    <input type="text" name="name" style="width:300px;" value="${product.name}"/><br/>

    <label>价格：</label>
    <input type="text" name="price" value="${product.price?c}"/><br/>

    <label>图片 url：</label>
    <input type="text" name="imgUrl" style="width:300px;" value="${product.imgUrl}"/><br/>

    <button type="submit">保存</button>

</form>

</body>
</html>